using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for SessionHelper
/// </summary>
public static class SessionHelper<T>
{
    public static bool existsVar(string strVar)
    {
        return HttpContext.Current.Session[strVar] == null ? false : true;
    }

    public static T getVar(string strVar)
    {
        return (T)HttpContext.Current.Session[strVar];
    }

    public static void setVar(string strVar, T value)
    {
        HttpContext.Current.Session[strVar] = value;
    }
}
